package net.diaowen.dwsurvey.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import net.diaowen.common.base.entity.IdEntity;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 机构报表
 * @author keyuan(keyuan258@gmail.com)
 * @date 2012-10-21下午9:26:43
 *
 * https://github.com/wkeyuan/DWSurvey
 * http://dwsurvey.net
 */

@Entity
@Table(name="t_org_report")
public class OrgReport extends IdEntity{



    /**
     * 机构id
     */
    private String orgId;
    /**
     * 学年id
     */
    private String schoolYearId;
    /**
     * 提交时间
     */
    private Date commitTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 状态 0 未提交  1 已提交  2 退回
     */
    private String status;



    public OrgReport(){

    }
    public OrgReport(String orgId, String schoolYearId, Date commitTime,
                     Date createTime,String status) {
        this.orgId=orgId;
        this.schoolYearId=schoolYearId;
        this.commitTime=commitTime;
        this.createTime=createTime;
        this.status=status;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getSchoolYearId() {
        return schoolYearId;
    }

    public void setSchoolYearId(String schoolYearId) {
        this.schoolYearId = schoolYearId;
    }

    public Date getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(Date commitTime) {
        this.commitTime = commitTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
